<?php


namespace App\Http\Requests\Order\ShipmentMain;


use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class UpdateRequest extends FormRequest
{
    /**
     * @return array
     * @author luffyzhao@vip.126.com
     */
    public function rules()
    {
        return [
            'express_code' => ['required', Rule::exists('orders', 'express_code')],
            'weight' => ['required', 'numeric']
        ];
    }
}
